package com.xnx3.wangmarket.shop.store.generateCache;

import org.springframework.stereotype.Component;
import com.xnx3.j2ee.generateCache.BaseGenerate;

/**
 * 订单相关数据缓存生成
 * @author 王晓龙
 */
@Component
public class Order extends BaseGenerate  {
	public Order() {
		state();
	}
	
	public void state() {
		createCacheObject("state");
		cacheAdd(com.xnx3.wangmarket.shop.core.entity.Order.STATE_DAIJIEDAN,"待接单");
		cacheAdd(com.xnx3.wangmarket.shop.core.entity.Order.STATE_DAIQUHUO,"待取货");
		cacheAdd(com.xnx3.wangmarket.shop.core.entity.Order.STATE_FINISH,"已完成待评价");
		cacheAdd(com.xnx3.wangmarket.shop.core.entity.Order.STATE_CANCEL,"已取消");
		cacheAdd(com.xnx3.wangmarket.shop.core.entity.Order.STATE_EVALUATED,"已完成已评价");
		generateCacheFile();
	}
}
